module.exports = async () => {
  // 创建数据库集合
  const db = uniCloud.database();
  await db.createCollection('access_tokens');
  
  // 创建索引
  await db.collection('access_tokens').createIndex({
    createTime: -1
  });
  
  return {
    success: true,
    message: '初始化成功'
  };
}; 